安装docker时报错:Package ‘docker-ce‘ has no installation candidate

如果依旧报错,说明apt的源设置的不对。首先尝试更新,并重新安装。_package\'docker-ce\'hasnoinstallationcandidate...